package cn.imnu.legalaid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 咨询表
 * @TableName consultations
 */
@TableName(value ="consultations")
@Data
public class Consultations {
    /**
     * 咨询表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "client_id")
    private Integer client_id;

    /**
     * 律师id
     */
    @TableField(value = "lawyer_id")
    private Integer lawyer_id;

    /**
     * 咨询标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 咨询类型
     */
    @TableField(value = "category")
    private Object category;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 咨询状态
     */
    @TableField(value = "status")
    private Object status;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updated_at;

    /**
     * 预定时间
     */
    @TableField(value = "scheduled_time")
    private LocalDateTime scheduled_time;

    /**
     * 实际进行时间（分钟）
     */
    @TableField(value = "actual_duration")
    private Integer actual_duration;

    /**
     * 评分
     */
    @TableField(value = "rating")
    private Integer rating;

    /**
     * 反馈
     */
    @TableField(value = "review")
    private String review;
}